/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: stringdemo
 * Author:   xbliu
 * Date:     2020/7/1 14:45
 * Description: StringDemo
 * History:
 * <author>          <time>          <version>          <desc>
 * xbliu           修改时间           版本号              描述
 */
package c_008.stringdemo;

/**
 * @Classname stringdemo
 * @Description TODO
 * @Date 2020/7/1 14:45
 * @Created by xbliu
 */
public class Stringdemo {
    public static void main(String[] args) {
        String a1 = "a" + "b" + "c";
        String a2 = "a";
        String a3 = "b";
        String a4 = "c";
        String a5 = a2 + a3 + a4;
        System.out.println(a1 == a5);
        String i = "abc";
        String i1 = "abc";
        String i2 = new String("abc");
        System.out.println(i == i1);
        System.out.println(i == i2);

    }
}
